<template>
  <div class="white-container">
    <div class="back-arrow">
      <van-icon name="arrow-left" size="1.5rem" @click="gobackHome"/> 
    </div>
    <div class="white-body">
      <div class="white-title">温馨提示</div>
      <div class="white-content2" v-if="type">
        <div class="white-icon">
            <img src="../assets/images/zxjt/whitePic.png" alt="">
        </div>
        <div class="white-text">{{content2}}</div>
      </div>
      <div class="white-content1" v-else>{{ content1 }}</div>
      <div class="white-btn" @click="gobackHome">我知道了</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    type:Boolean
  },
  data() {
    return {
      content1:'据《证券期货投资者适当性管理办法》相关要求，为保障投资者权益，本场会议仅对特定对象开放，您暂时无法参会，如需获取相关信息，请联系您的理财规划师，评估您的风险承受能力后再适当提供。感谢您的关注和理解！',
      content2:'很抱歉，未获取到用户信息'
    }
  },
  methods: {
    gobackHome() {
      this.$router.replace(`/${this.$channel}/home`);
    }
  }
}
</script>

<style lang="less" scoped>
.white-container{
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1200;
    .back-arrow{
      width: 100%;
      height: 100px;
      display: flex;
      align-items: center;
      margin-left: 15px;
    }
    .white-body{
      width: 488px;
      height: 700px;
      margin: 216px auto;
      .white-title{
        width: 152px;
        font-weight: 600;
        color: #000000;
        line-height: 53px;
        height: 53px;
        font-size: 38px;
        margin: 40px auto;
        white-space: nowrap;
      }
      .white-content2{
        width: 488px;
        height: 392px;
        font-size: 30px;
        font-weight: 400;
        color: #666666;
        line-height: 56px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .white-icon{
          width: 326px;
          height: 326px;
          img{
            width: 100%;
            height: 100%;
          }
        }
      }
      .white-content1{
        width: 488px;
        height: 392px;
        font-size: 30px;
        font-weight: 400;
        color: #666666;
        line-height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .white-btn{
        width: 100%;
        height: 78px;
        background: #FE5A00;
        color: #ffffff;
        font-weight: 600;
        font-size: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 80px;
      }
    }
}
</style>